//
//  RootView.m
//  DetailTest
//
//  Created by wp w on 12-6-20.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "RootView.h"
#import "DLog.h"

@implementation RootView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor redColor];
        
        //视图的contentMode属性决定了边 界变化和缩放操作作用到视图上产生的效果
        //UIViewContentModeScaleToFill,意味着视图内容总是被缩放
        self.contentMode = UIViewContentModeCenter;
        self.tag = 100;
    }
    return self;
}

-(void)layoutSubviews
{
    DLogFun();
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
